<?php
namespace app\common\validate;

/**
 * Class AlipayOrders
 * @package app\common\validate
 * @author jwj <jwjbjg@gmail.com>
 * @copyright jwj
 */
class AlipayOrders extends Validate
{
    protected $rule = [
        'id'           => ['require'],
        'refund_money' => ['require', 'number'],
    ];

    protected $field = [
        'id'           => 'ID',
        'refund_money' => '退款金额',
    ];

    /**
     * 退款
     * @return self
     */
    public function sceneRefund(): self
    {
        return $this->only(['id', 'refund_money']);
    }
}